package com.xf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xf.common.core.domain.DmpResult;
import com.xf.common.core.entity.dmp.DmpAuthResource;
import com.xf.common.core.entity.dmp.DmpAuthResourceRole;
import com.xf.common.core.entity.dmp.DmpAuthRole;

import java.util.List;

/**
 * @author JoeyLiu
 * @create 2022-04-20 16:31
 */
public interface DmpAuthResourceService  extends IService<DmpAuthResource> {

    List<DmpAuthResourceRole> getAllResourceRole();

    void batchAddRoleResource(List<DmpAuthRole> dmpAuthRoles);

    List<DmpAuthResource> queryResourceByRoleIds(List<Long> roleIds);

    IPage<DmpAuthResource> page(IPage page, String name, String url);

    DmpResult insert(DmpAuthResource authResource);

    DmpResult removeByResourceId(Long id);

    DmpResult updateByResourceId ( DmpAuthResource dmpAuthResource);



}



